package spec.tianjunxiu.unit3.lianxi;
    public class College_student {
        //属性
        String xm;
        int xh;
        String xx="四川幼专";
        String xb;
        String bj;
        //方法
    /*返回值
    方法名
    参数列表
    函数体
     */
        String study(String course){
            return "我在打游戏"+course;
        }
        //构造方法
        College_student(String xm,String xb,int xh){
            this.xm =xm;
            this.xh=xh;
            this.xb=xb;
        }
        College_student(String xm,int xh,String xb){
            this.xb="应用技术系";
            this.xm =xm;
            this.xh=xh;
            this.xb=xb;
        }
    }

